<!doctype html>
<html lang="en">
<head th:replace="fragments/head">
 <script>
     var x = 0;
 </script>

</head>
<body>
<div class="wrapper">
    <div th:replace="fragments/sidebar"></div>
</div>

    <div th:replace="fragments/js"></div>
</body>
</html>